Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fetch response parsing, create safe retry #386

Merged
merged 18 commits into from
Oct 4, 2024

Conversation

truemiller
Copy link
Collaborator

@truemiller truemiller commented Oct 3, 2024

Proposed changes

  • update API services to parse error statuses and throw
  • add utf-8 charset, unlikely to be required, but may support decoding issues on middleware
  • add create safe retries
  • updates "creating safe" text at different steps
  • check backup signer exists before continuing to main (stops missing backup wallet alert appearing)
  • added error message notifications during creation (i.e. if retrying)

no real UI changes, will ask @iasonrovis to test rc162

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@truemiller truemiller marked this pull request as ready for review October 4, 2024 09:26
Copy link
Collaborator

@Tanya-atatakai Tanya-atatakai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed with Mohan's comments, but approve in advance

The commit adds a new utility function, `delayInSeconds`, to the `@/utils/delay` module. This function is used in the `SetupCreateSafe` component to introduce a delay of 5 seconds before retrying an API call. The delay is implemented in the error handling logic of the `createSafeWithRetries` function.

Resolves: #123
frontend/constants/headers.ts Outdated Show resolved Hide resolved
@truemiller truemiller merged commit a744c2e into staging Oct 4, 2024
4 checks passed
@truemiller truemiller deleted the fix/response-ok-charset branch October 4, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User stuck on "Creating account..." screen for hours (Win & Mac)
4 participants